package com.woniuxy.dudugua.controller;

import com.woniuxy.dudugua.service.impl.ProductImagesServiceImpl;
import com.woniuxy.dudugua.util.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RestController
@RequestMapping("productImages")
public class ProductImagesController {
    @Resource
    private ProductImagesServiceImpl productImagesServiceImpl;
    @RequestMapping("selectByProductId")
    public Result selectByProductId(Integer id){
        return new Result("200","success",null,productImagesServiceImpl.selectById(id));
    }
}
